package com.pig4cloud.pig.module.service.mer.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.pig.module.api.entity.mer.Mer;
import com.pig4cloud.pig.module.mapper.mer.MerMapper;
import com.pig4cloud.pig.module.service.mer.IMerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 服务商家Service业务层处理
 *
 * @author ruoyi
 * @date 2021-09-05
 */
@Service
public class MerServiceImpl extends ServiceImpl<MerMapper, Mer> implements IMerService {

	@Resource
	private MerMapper merMapper;

	@Override
	public Page<Mer> selectAllByListPage(Page<Mer> page, Map<String, Object> map) {
		return merMapper.selectAllByListPage(page,map);
	}

	@Override
	public Page<Mer> selectMerListByUserId(Page<Mer> page, Map<String, Object> map) {
		return merMapper.selectMerListByUserId(page,map);
	}

	@Override
	public List<Mer> selectMerListByUserId(Map<String, Object> map) {
		return merMapper.selectMerListByUserId(map);
	}
}
